package com.schoolMall.dto;

import com.schoolMall.domain.Product;
import com.schoolMall.enums.ProductStateEnum;

import java.util.List;

/**
 * @author:zyh
 * @Time:2021-09-01-10:00
 * @email:1269231889@qq.com
 */
public class ProductDto {
    private ProductStateEnum productStateEnum;
    private Product product;
    private List<Product> productList;
    private int count;


    public ProductDto(ProductStateEnum productStateEnum) {
        this.productStateEnum = productStateEnum;
    }

    public ProductDto(ProductStateEnum productStateEnum, Product product) {
        this.productStateEnum = productStateEnum;
        this.product = product;
    }

    public ProductDto(ProductStateEnum productStateEnum, List<Product> productList) {
        this.productStateEnum = productStateEnum;
        this.productList = productList;
    }

    public ProductStateEnum getProductStateEnum() {
        return productStateEnum;
    }

    public void setProductStateEnum(ProductStateEnum productStateEnum) {
        this.productStateEnum = productStateEnum;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public List<Product> getProductList() {
        return productList;
    }

    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
